package cn.bdqn.pojo.Role;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色与用户中间表，
 * 添加角色或用户之后需在此表添加一条相对的记录
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUserRole {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    //默认id为2
    private Integer roleId;
    private Integer isDel;

    public SysUserRole(Integer userId) {
        this.userId = userId;
    }
}
